home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1984 Half 1
/
rerun-1984-01-06-side-b.d64
/
doodl_3k jun p98
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
73 lines
1 ifpeek(44)=4thenpoke56,16:poke52,16:clr
2 goto20
5 ki=0:getik$:ifik$=""then11
6 fori=10to16:ifik$=mid$(kk$,i,1)thenki=i
7 next:ifki<>0thenreturn
8 ifkj=0then13
9 ik=188-((peek(37137)and60)or(peek(37152)and128)):fori=1to9:ifik(i)=ikthenki=i
10 next:return
11 ifkj=1then9
12 return
13 fori=1to9:ifik$=mid$(kk$,i,1)thenki=i
14 next:return
20 dimik(9)
21 gosub80
25 gosub5
26 ib=-(ib<2)*(ib+1):pokeby,b(ib)
30 onki+1goto25,31,32,33,34,35,36,37,38,50,44,45,52,46,54,57,53
31 y=-(y-1)*(y>0):goto39
32 y=y+1+(y>174):goto39
33 x=-(x-1)*(x>0):goto39
34 x=x+1+(x>158):goto39
35 y=-(y-1)*(y>0):x=-(x-1)*(x>0):goto39
36 y=-(y-1)*(y>0):x=x+1+(x>158):goto39
37 y=y+1+(y>174):x=-(x-1)*(x>0):goto39
38 y=y+1+(y>174):x=x+1+(x>158)
39 pokeby,b(0):co=20*int(y/16)+int(x/8):poke38400+co,c0
40 by=4096+16*co+y-16*int(y/16):bi=7-(x-8*int(x/8))
41 b(0)=peek(by):b(2)=b(0)or(2^bi):b(1)=b(0)and(255-(2^bi)):ib=1
42 b(0)=b(2):ifed%=0thenb(0)=b(1)
43 goto25
44 c0=-(c0+1)*(c0<7):poke38400+co,c0:goto25
45 ls%=1:goto47
46 ls%=0
47 ifkj=1thenpoke37139,128:poke37154,255
48 gosub95:ifkj=1thenpoke37139,0:poke37154,127
49 goto25
50 c8=ed%:ed%=1-ed%:b(0)=b(1):ifed%=1thenb(0)=b(2)
51 poke36879,((peek(36879)and248)orc8):goto25
52 c5=-(c5+1)*(c5<15):poke36879,((peek(36879)and15)or(16*c5)):goto25
53 gosub65:goto25
54 c8=peek(36879):poke36879,((c8and248)or7):ifkj=1thenpoke37154,255
55 gosub60:ifkj=1thenpoke37154,127
56 poke36879,c8:c8=1-ed%:ifbo<>139then25
57 poke36864,5:poke36866,150:poke36867,46:poke36869,240:poke36879,27
58 poke37154,255:poke37139,128:print"[147]":end
60 getx$:ifx$=""then60
61 bo=asc(x$):ifbo=135orbo=139thenreturn
62 ifbo>64andbo<91thenbo=bo-64
63 fori=0to18:poke38400+i,peek(38401+i):k=4096+16*i:forj=0to7:poke(k+j),peek(k+j+16)
64 next:next:k=32768+8*bo:fori=0to7:poke4400+i,peek(k+i):next:poke38419,c0:goto60
65 c8=0:c5=1:c0=0:poke36864,7:poke36866,148:poke36867,23:poke36869,252
66 poke36879,(8orc8or(16*c5)):b(0)=128:b(1)=0:b(2)=128:ib=0:ed%=1
67 fori=0to219:poke7680+i,i:poke38400+i,0:next:fori=4096to7615:pokei,0:next
68 co=110:by=5856:bi=7:x=80:y=80:poke648,30:return
79 data4,8,16,128,20,132,24,136,32
80 print"[147]joystick(j) or keyboard(k)?"
81 getik$:ifik$=""then81
82 ifik$<>"j"andik$<>"k"then81
83 kj=0:ifik$="j"thenkj=1:poke37139,0:poke37154,127
84 fori=1to9:readik(i):next:kk$="i,jluom._[133][137][134][138][135][139]\":gosub65:return
86 fori3=i2toi2+a5:fori5=0to6:h(i5)=0:next:fori5=0toa3:i4=i1+i5
87 b=16*(20*int(i4/16)+int(i3/8))+i4-16*int(i4/16)
88 i=2^(7-i3+8*int(i3/8)):if(peek(4096+b)andi)<>0thenh(i5)=1
89 next:ifls%=0thenc=0:fori5=0to6:c=c+h(i5)*(2^i5):next:y$=y$+chr$(128+c)
90 ifls%=1thenc=128+3*h(0)+12*h(1)+48*h(2)+64*h(3):y$=y$+chr$(c)+chr$(c)
91 ifls%=2thenc=128+h(3)+6*h(4)+24*h(5)+96*h(6):y$=y$+chr$(c)+chr$(c)
92 next:return
93 a5=5:fori2=0to151step6:y$="":gosub86:print#1,y$;:next
94 a5=3:i2=156:y$="":gosub86:y$=y$+chr$(128)+chr$(128):print#1,y$:return
95 open1,4:print#1,chr$(8):a3=6:fori1=0to169step7:gosub93
96 ifls%=1thenls%=2:gosub93:ls%=1
97 next:a3=0:i1=175:gosub93:print#1,chr$(15):close1:return